package com.wanlian.netty.msg.Device;

import com.wanlian.json.JsonStringUtil;
import com.wanlian.netty.msg.BaseMsg;
import com.wanlian.netty.msg.Device.model.NetDevice;
import com.wanlian.netty.msg.MsgType;

/**
 * 移除黑名单
 */
public class BlackDeviceRemoveRequset extends BaseMsg {

    private NetDevice netDevice;

    public BlackDeviceRemoveRequset() {
        super();
        this.setType(MsgType.DEVICE_BLACKREMOVE_SET);
    }

    public NetDevice getNetDevice() {
        return netDevice;
    }

    public void setNetDevice(NetDevice netDevice) {
        this.netDevice = netDevice;
        this.setContent(JsonStringUtil.writeValueAsString(netDevice));
    }
}
